/*
强制类型转换
在C++中有两种强制类型转换表达方式
    1. (int) variable;
    2. int(variable);
    // 上面两种强制转换方式相同
还有一种强制类型表达方式--使用static_cast<类型>(variable)

*/

#include <iostream>
int main()
{
    using namespace std;
    int number = 100;

    double number_double;
    // double强制类型转换
    // 1.
    number_double = (double)number;
    cout << "This number cast to double is:" << number_double << endl;
    // 2.
    number_double = double(number);
    cout << "This number cast to double is:" << number_double << endl;

    number_double = static_cast<double>(number);
    cout << "This number cast to double is:" << number_double << endl;

    return 0;
}